home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Novice ODF scripting mystery
- Sent: 8/13/96 2:40 PM
- Received: 8/13/96 1:49 PM
- From: Greg Friedman, friedman@cognosis.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Eric Smith wrote:
- > Greetings,
- >
- > I'm in the process of adding scriptability to my part. The C++ part of the
- > job was pretty straightforward, despite the rather meagre documentation.
- >
- > What's causing me grief is the 'aete' resource, because the terminology
- > I've added doesn't seem to be fully accessible to AppleScript. In
- > particular, I've extended the 'ODSt' suite by adding a few new properties
- > to the 'part' class. These properties show up in the editor's dictionary,
- > but scripts can only refer to these properties by their class names: "set
- > x to <<class rads>> of part id 65566" works, but "set x to radius of part
- > id 65566" tells me that "Foo got an error: Can't make some data into the
- > expected type". I notice that ODFDraw seems to have a similar problem:
- > scripts can refer to "<<class DrSh>>", but not to "shape" or "shapes".
- >
- > Is this an OpenDoc problem, an ODF problem, or an AppleScript problem?
- > It's bad enough that users have to deal with "part id 65566", but I
- > certainly can't expect them to deal with something as ugly as <<class
- > rads>>. For the record, I'm using OpenDoc 1.1f1, ODF R1, and AppleScript
- > 1.1.
-
- Are the statements that reference your part's custom terminology within a
- tell block that says, "tell application documentName", where documentName
- is the name of your document, not "OpenDoc™"?
-
- gsf.
-
-
- ___________________________________________________________
- Greg Friedman ODF Engineering Apple Computer
-
-
-